package com.achievement.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.achievement.entity.Course;
import com.achievement.entity.dto.StuCourseDTO;
import com.common.util.TablePage;


public interface ICourseService {
	public TablePage<Course> findPage(Specification<Course> spec,Pageable pageable);
	public void saveOrUpdate(Course course);
	public List<Course> findAll();
	public List<Course> findTest();
	public List<Course> findUnselect(Long id);
	public void selectCourse(Long stuId,Long cId);
	public TablePage<StuCourseDTO> findStuDTOPage(Long stuId,Specification<Course> spec,Pageable pageable);
	public void delete(Long id);
	public boolean isNumExist(Course course);
	public boolean hasExam(Long id);
	public boolean hasStudent(Long id);
}
